A simple list group consists of an unordered list with individual list items.
Apply the .active
class to indicate the currently selected item.
For a list group with links, use <div>
in place of <ul>
and <a>
instead of <li>
You can also add the .list-group-item-action
class to enable a grey hover effect.
The .disabled
class gives disabled items a lighter text color and removes the hover effect on links.
Apply the .list-group-flush
class to eliminate certain borders and corner rounding from the list group.
Use the .list-group-numbered
class to create list items with numbers in front of them:
To display list items side by side instead of stacked, add the .list-group-horizontal
class to the .list-group
element
Use .badge
along with utility classes to place badges within list group items.